package com.music.controller;

import com.music.common.BaseResult;
import com.music.service.CmMyHomePageMusicService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Tong
 * @Date 2020/12/17 11:43
 */
@RestController
@RequestMapping("/CmMyHomePageMusic")
@Api(description = "主页相关接口")
//@CrossOrigin
public class CmMyHomePageMusicController {

    @Autowired
    CmMyHomePageMusicService cmMyHomePageMusicService;

    @RequestMapping(value = "/CmMyHomePageMusicfind",method = RequestMethod.GET)
      public BaseResult CmMyHomePageMusicfind(){
        return cmMyHomePageMusicService.CmMyHomePageMusicfind();
    }
}
